import org.eclipse.swt.widgets.*;
import org.eclipse.swt.SWT;

public class MyDialog  {

	public MyDialog(Shell shell)
	{
		final Shell dialog = new Shell (shell, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
		final Button ok = new Button (dialog, SWT.PUSH);
		ok.setText ("OK");
		Listener listener =new Listener () {
			public void handleEvent (Event event) {
			
				dialog.close ();
			}
		};
		
	}
}
